


public class OurRobot extends Attacker_Robot {
    private int power, speed, range; // Stats of the robot
    private int powerLevel, speedLevel, rangeLevel; // Upgrade levels of the robot
    
    //constructor
    public OurRobot(int x, int y) {
        super(x, y);
        power = 10;
        speed = 1;
        range = 0;
        powerLevel = 0;
        speedLevel = 0;
        rangeLevel = 0;
    }
    
    // Changes power 1 level up
    public void upgradePower() {
        powerLevel++;
        power = power + 10; 
    }
    
    // accessor for power
    public int get_power() {
        return power;
    }
    
    // accessor for powerLevel
    public int get_powerLevel() {
        return powerLevel;
    }
    
    // Changes speed 1 level up
    public void upgradeSpeed() {
        speedLevel++;
        speed = speed + 1;
    }
    
      // accessor for speed
    public int get_speed() {
        return speed;
    }
    
    // accessor for speedLevel
    public int get_speedLevel() {
        return speedLevel;
    }
    
    // Changes range 1 level up
    public void upgradeRange() {
        rangeLevel++;
        range = range + 2;
    }
    
    // accessor for range
    public int get_range() {
        return range;
    }
    
    // accessor for rangeLevel
    public int get_rangeLevel() {
        return rangeLevel;
    }
}
